var menuVm=new Vue({
	el: '#repast-todo',
  	ready:function(){
  		//填充数据
  		this.handleContent();
  	},
  	data:{
  		content:null,
  	},
  	methods:{
  		complateMenu:function(info){
  			$.alt.confirm("提示","传菜确认：".concat(info['name']),function(){
  				this.$http.patch("repast/menu/oper",{id:info['id']}).then((response) => {
  	  				this.handleContent();
  		  		}, (response) => {
  		  			$.alt.message("提示",response.body);
  		  		});
  				return true;
  			}.bind(this));
  		},
  		handleContent:function(){
  			$("body").LoadingOverlay("show",{fade : [500, 200]});
  			this.$http.get("repast/todo/menu").then((response) => {
	  			this.content=response.data;
	  			$("body").LoadingOverlay("hide", true);
	  		}, (response) => {
	  			$.alt.message("提示",response.body);
	  		});
  		}
  	}
});